package com.ioidea.holland.jkListAct

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import cn.com.heaton.blelibrary.ble.BleRssiDevice
import com.ioidea.holland.R
import dagger.hilt.android.scopes.ActivityScoped
import javax.inject.Inject

@ActivityScoped
class JkListAdapter @Inject constructor(
) : BaseQuickAdapter<BleRssiDevice, BaseViewHolder>(R.layout.item_jk) {


    init {
        addChildClickViewIds(R.id.btnWrite, R.id.btnConnect)
    }

    override fun convert(baseViewHolder: BaseViewHolder, bleRssiDevice: BleRssiDevice) {
        baseViewHolder.setText(R.id.tvNameContent, "设备")
        baseViewHolder.setText(R.id.tvMacContent, context.getString(R.string.s_sn, bleRssiDevice.sn))
    }


}